
<%@page import="ll.sms.util.*"%><%@ page language="java" import="org.apache.commons.lang.*,ll.sms.web.*,ll.sms.pojo.*,ll.sms.web.*,ll.sms.interfaces.*"  pageEncoding="UTF-8"%>
<%

//需要删除的ID
String id = ParamUtils.getParameter(request,"id");
//需要操作的表
String tablename = ParamUtils.getParameter(request,"tablename");

//删除代理
WebBusinessInterface web = WebBusinessImpl.getInstance();
if(StringUtils.isBlank(tablename) || StringUtils.isBlank(id)){
	out.print(ExtJsonBuilder.formFailure("操作失败"));
	return;
}

if("sms_admin".equals(tablename)){
out.print(web.deleteProxy(id));
return;
}

if("sms_channel".equals(tablename)){
out.print(web.deleteChannel(id));
return;
}

if("sms_user".equals(tablename)){
out.print(web.deleteUser(id));
}


%>
